package com.yntsoft.mapper;

import com.yntsoft.entity.UserRole;

public interface UserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

	/**
	 * 通过用户Id 删除用户已经拥有的角色
	 * @param userId
	 */
	void deleteByUserId(Integer userId);
}